import http from "@/utils/request";

export default{
    //(昨日,今天,差值)获取矿级形成审核日报数据列表
    //查询
    async getKjxcshrbcompareList(pageNo,pageSize,approveStatus,startDate,endDate){
        return await http.get("/api/kjxcshrb/compareList",{pageNo,pageSize,approveStatus,startDate,endDate});
    },
    //(昨日,今天,差值)获取矿级形成审核日报数据列表
    //查询
    async getKjxcshrbList(pageNo,pageSize,approveStatus,startDate,endDate){
        return await http.get("/api/kjxcshrb/list",{pageNo,pageSize,approveStatus,startDate,endDate});
    },
    
    //新增矿级形成审核日报数据
    //添加
    async addKjxcshrb(params){
        // console.log(1);
        return await http.post("/api/kjxcshrb/add",params)
    },
    //修改矿级形成审核日报数据
    //修改
    async updateKjxcshrb(params){
        // console.log(29999999);
        return await http.put("/api/kjxcshrb/update",params)
    },
     //上传文件
     async importExcel(myfile){
        // console.log(29999999);
        console.log(myfile.get("myfile"));

        return await http.upload("/api/fileAbout/fileUpload",{myfile})
    },
    //导入文件
    async batchImportExcel(filePath){
        // console.log(typeof(filePath));
        // console.log(filePath.get("filePath"));
        return await http.upload("/api/kjxcshrb/batchInput",{filePath})
    },
    //下载模板
    async download(params){
        // console.log(1);
        return await http.get("/api/kjxcshrb/downLoadExcel",params)
    },
    async delete(params) {
        // return Request.get('/slzzzb/all', params);
        // return Request.get('/QtccxZbhz/all', startDate,endDate);
        return await http.delete('/api/kjxcshrb/delete', params);
    }
}